<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单</title>
    <meta name="keywords" content="关键字">
    <meta name="description" content="描述">
    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="${ctx }/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${ctx }/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- Data Tables -->
    <link href="${ctx }/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="${ctx }/css/animate.css" rel="stylesheet">
    <link href="${ctx }/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <div class="row">
                           <div class="col-sm-12">
                                <h3>二维码查询</h3>
                           </div>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" action="qrcodeSearch" method="post" name="QRform" id="QRform">
                            <div class="row">
                            <div class="col-sm-12">
                                    <div class="col-sm-3">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-addon">客户名称</div>
                                        			<select class="form-control input-lg" name="customerId" id="customerId">
		                                                <c:forEach var="c" items="${customerList }">
															<option value="${c.id }">${c.c_name}</option>								
														</c:forEach>
		                                            </select>                                         
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-addon">二维码类别</div>
                                        
                                                    <select class="form-control input-lg" id="qrcodeType" name="qrcodeType">
                                                        <option value="1">主码</option>
                                                        <option value="0">子码</option>
                                                    </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                         <div class="form-group">
                                            <div class="input-group">
                                                <div class="input-group-addon">二维码编号</div>
                                                <div class="relative_box">
                                                    <input type="text" class="form-control input-lg" maxlength="100" id="qrcodeId" name="qrcodeId">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-3">
                                        <button class="btn btn-primary btn-lg" id="btn" type="button" onclick="qrcodeSearch();">&#8195;查询&#8195;</button>
                                    </div>
                                </div>
                            </div>
                        </form>
 

                    </div>
                    <div class="ibox-content" style="display:none;" id="loading">
                    	<div class="sk-spinner sk-spinner-wave" >
                            <div class="sk-rect1"></div>
                            <div class="sk-rect2"></div>
                            <div class="sk-rect3"></div>
                            <div class="sk-rect4"></div>
                            <div class="sk-rect5"></div>
                        </div>
                    </div>
                     <div class="ibox-content"  id="child" style="display:none;">                                                
                        <h5>子码信息表</h5>
                        <table class="table table-bordered table-hover text-center" id="childTable" >
                            <thead>
                                <tr>
                                    <th class="text-center">主码编号</th>
                                    <th class="text-center">销售地</th>
                                    <th class="text-center">出厂时间</th>
                                    <!-- <th class="text-center">是否被扫(接口调用)</th>
                                    <th class="text-center">扫码时间(接口调用时间)</th> -->
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>湖南长沙</td>
                                    <td>2016-01-21 12：02</td>
                                    <td>是</td>
                                    <td>2016-01-21 12：02</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="ibox-content"  id="master" style="display:none;">  <!-- style="display:none;" -->  
                        <h5>主码信息表</h5>
                        <table class="table table-bordered table-hover text-center" id="masterTable1">
                            <thead>
                                <tr>
                                    <th class="text-center">主码编号</th>
                                    <th class="text-center">销售地</th>
                                    <th class="text-center">出厂时间</th>

                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>湖南长沙</td>
                                    <td>2016-01-21 12：02</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>    
                    <div class="ibox-content"  id="master2" style="display:none;">    
                        <table class="table table-striped table-bordered table-hover dataTables-example text-center" id="masterTable2">
                            <thead>
                                <tr>
                                    <th class="text-center">序号</th>
                                    <th class="text-center">子码编号</th>

                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>01</td>
                                </tr>
                            </tbody>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Modal -->
	<div class="modal fade" id="alertModal" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">提示</h4>					
				</div>
				<div class="modal-body" id="alertMessage">
					<div class="progress progress-striped active">
						<div style="width: 5%" aria-valuemax="100" aria-valuemin="0"
							aria-valuenow="25" role="progressbar"
							class="progress-bar progress-bar-danger">
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
    
    <!-- 全局js -->
    <script src="${ctx }/js/jquery.min.js?v=2.1.4"></script>
    <script src="${ctx }/js/bootstrap.min.js?v=3.3.6"></script>

    <!-- Data Tables -->
    <script src="${ctx }/js/plugins/dataTables/jquery.dataTables.js"></script>
	<script src="${ctx}/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${ctx }/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <!-- 自定义js -->
    <script src="${ctx }/js/content.js?v=1.0.0"></script>
    <script src="${ctx}/js/plugins/layer/layer.min.js"></script>
	<script src="${ctx }/js/qrcode/qrcodeFind.js"></script>

 
</body>
</html>
